package com.user.service;

import com.bean.WmsTUser;
import com.user.mapper.LoadMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class LoadService {

    @Autowired
    LoadMapper loadMapper;

    public WmsTUser Load( String userId,  String userPwd){
        return loadMapper.Load(userId,userPwd);
    };

    //    public ArrayList<WmsTStore> FindCKName(){
//        return loadMapper.FindCKName();
//    }

    public ArrayList<String> FindsiteID(){
        return loadMapper.FindsiteID();
    };

    public String FindstoreID(String siteID){
        return loadMapper.FindstoreID(siteID);
    };

    public String FindstoreName(String storeID){
        return loadMapper.FindstoreName(storeID);
    };

    public List<String> FindtrayId(){
        return loadMapper.FindtrayId();
    };

    //根据userAccount查询数据库中的权限名
    public String JudgePermission(String userAccount){
        return loadMapper.JudgePermission(userAccount);
    };

    //查询登录页面的权限(下拉框
    public List<String> QueryPermissions(){
        return loadMapper.QueryPermissions();
    };

    public List<String> FindWarehouseState(String WareHouseName){
        return loadMapper.FindWarehouseState(WareHouseName);
    };

    public List<String> FindWarehouseName(){
        return loadMapper.FindWarehouseName();
    };

}
